<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="p" tagdir="/WEB-INF/tags/"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="creerCompte.css" />
<title>Formulaire d'inscription</title>
</head>
<body>
	<h1>FORMULAIRE D'INSCRIPTION AU SITE AGRIOTES</h1>

	<p class="error">${msgForm}</p>
	<form action="" method="post">
		<fieldset>
			<legend>Créer son compte</legend>
			<table border="0" cellpadding="4" cellspacing="1">
				<tr>
					<th><label for="nom">Nom</label></th>
					<td><input type="text" id="nom" name="nom"
						value='${param["nom"]}' size="40" /></td>
					<td class="error">${msgNom}</td>
				</tr>
				<tr>
					<th><label for="prenom">Prénom</label></th>
					<td><input type="text" id="prenom" name="prenom"
						value='${param["prenom"]}' size="40" /></td>
					<td class="error">${msgPrenom}</td>
				</tr>
				<tr>
					<th><label for="dateNaissance">Date de naissance<br />(jj/mm/aaaa)
					</label></th>
					<td><input type="text" id="dateNaissance" name="dateNaissance"
						value='${param["dateNaissance"]}' size="40" /></td>
					<td class="error">${msgDateNaissance}</td>
				</tr>
				<tr>
					<th><label for="numeroTelephone">Numéro de Téléphone</label></th>
					<td><input type="text" id="numeroTelephone"
						name="numeroTelephone" value='${param["numeroTelephone"]}'
						size="40" /></td>
					<td class="error">${msgTelephone}</td>
				</tr>
				<tr>
					<th><label for="adresse">Adresse</label></th>
					<td><input type="text" id="adresse" name="adresse"
						value='${param["adresse"]}' size="40" /></td>
					<td class="error">${msgAdresse}</td>
				</tr>
				<tr>
					<th><label for="ville">Ville</label></th>
					<td><input type="text" id="ville" name="ville"
						value='${param["ville"]}' size="40" /></td>
					<td class="error">${msgVille}</td>
				</tr>
				<tr>
					<th><label for="codePostal">Code postal</label></th>
					<td><input type="text" id="codePostal" name="codePostal"
						value='${param["codePostal"]}' size="40" /></td>
					<td class="error">${msgCodePostal}</td>
				</tr>
				<tr>
					<th><label for="email">Email</label></th>
					<td><input type="text" id="email" name="email"
						value='${param["email"]}' size="40" /></td>
					<td class="error">${msgEmail}</td>
				</tr>
				<tr>
					<th><label for="password">Mot de passe</label></th>
					<td><input type="password" id="password" name="password"
						value='${param["password"]}' size="40" /></td>
					<td class="error">${msgPassword}</td>
				</tr>
				<tr>
					<th><label for="password2">Confirmation mot de passe</label></th>
					<td><input type="password" id="password2" name="password2"
						value='${param["password2"]}' size="40" /></td>
					<td class="error">${msgPassword2}</td>
				</tr>
			</table>
			<div class="enregistrer">
				<button type="submit">S'enregistrer</button>
				<!--  <button type="reset">Effacer</button> efface les données -->
			</div>
		</fieldset>
	</form>
</body>
</html>